#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    //添加定时器
    void timerEvent(QTimerEvent *);

    //第一个timer的id
    int timerId_1;

    //第二个timer的id
    int timerId_2;

    //2. 重新事件过滤器
    bool eventFilter(QObject *, QEvent *);

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
